package cn.com.callback

import java.util.Map;
import java.util.HashMap;
import cn.com.elite.EliteBean;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import cn.com.callback.CallBackInvoke;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import cn.com.elite.Util;
import cn.com.elite.PropertiesUtil;

public class SmsInfoTask implements CallBackInvoke{
	private static final Log log=LogFactory.getLog(SmsInfoTask.class);
	public void doCallBack(EliteBean eliteBean,String callBack,Map map,String paramString){

		PropertiesUtil properties = new PropertiesUtil();
		def crmurl = properties.readValue("crmurl");
		log.debug("自动调用本地Groovy接口地址URL:"+crmurl);
		try{
			def charset = "UTF-8";
			def timeout = 300000;
			def enableSSLflag = 0;

			//Util.doHttpGet(crmurl+"InsertSZWaterDB",charset,timeout,enableSSLflag);
			//2021-12-06短信切换为接口模式发送
			Util.doHttpGet(crmurl+"api_SZWaterDB",charset,timeout,enableSSLflag);
		}catch(Exception e){
			log.error("接口异常信息：" ,e);
		}
	}
}